package cn.itcast;

/**
 * @Author : 叶荻风
 * @create : 2024/8/5 15:12
 */
public class StaticVariable{
    private static int count = 0;

    private StaticVariable() {
        count++;
    }

    public static int getCount() {
        return count;
    }

    public static void main(String[] args) {
        StaticVariable staticVariable = new StaticVariable();
        System.out.println(StaticVariable.getCount());
    }
}
